﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace CommonModule.ViewModels
{
    public class FooterStatusViewModel :BindableBase
    {
        private string _statusText;
        public string StatusText
        {
            get => _statusText;
            set => SetProperty(ref _statusText, value);
        }

        private Brush _statusColor;
        public Brush StatusColor
        {
            get => _statusColor;
            set => SetProperty(ref _statusColor, value);
        }

        public FooterStatusViewModel()
        {
            // 默认状态
            SetNormalStatus();
        }

        public void SetNormalStatus()
        {
            StatusText = "系统状态：正常";
            StatusColor = Brushes.Green;
        }

        public void SetErrorStatus()
        {
            StatusText = "系统状态：异常";
            StatusColor = Brushes.Red;
        }
    }
}
